//
//  ThirdDetailCell.m
//  ShopDemo
//
//  Created by Sunshine on 2018/8/6.
//  Copyright © 2018年 飞扬的青春. All rights reserved.
//

#import "ThirdDetailCell.h"

@implementation ThirdDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imagevi = [UIImageView new];
        self.imagevi = imagevi;
        [self.contentView addSubview:imagevi];
        imagevi.sd_layout
        .topSpaceToView(self.contentView, 8*kJLXWidthScale)
        .bottomSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(self.contentView, 8*kJLXWidthScale)
        .widthIs(70*kJLXWidthScale);
        
        UILabel *biaotilab = [UILabel new];
        self.biaotilab = biaotilab;
        biaotilab.font = [UIFont systemFontOfSize:15*kJLXWidthScale];
        [self.contentView addSubview:biaotilab];
        biaotilab.sd_layout
        .topSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(imagevi, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 8*kJLXWidthScale)
        .heightIs(30*kJLXWidthScale);
        
        UILabel *guigelab = [UILabel new];
        self.guigelab = guigelab;
        guigelab.font = [UIFont systemFontOfSize:15*kJLXWidthScale];
        [self.contentView addSubview:guigelab];
        guigelab.sd_layout
        .topSpaceToView(biaotilab, 5*kJLXWidthScale)
        .leftSpaceToView(imagevi, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 100*kJLXWidthScale)
        .heightIs(25*kJLXWidthScale);
        
        UILabel *shulianglab = [UILabel new];
        self.numlab = shulianglab;
        shulianglab.font = [UIFont systemFontOfSize:15*kJLXWidthScale];
        [self.contentView addSubview:shulianglab];
        shulianglab.sd_layout
        .topSpaceToView(biaotilab, 15*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 10*kJLXWidthScale)
        .heightIs(25*kJLXWidthScale)
        .widthIs(60*kJLXWidthScale);
        
        UILabel *pricelab = [UILabel new];
        self.pricelab = pricelab;
        pricelab.font = [UIFont systemFontOfSize:15*kJLXWidthScale];
        [self.contentView addSubview:pricelab];
        pricelab.sd_layout
        .bottomSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(imagevi, 8*kJLXWidthScale)
        .heightIs(30*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 8*kJLXWidthScale);
    }
    return self;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
